<?php


namespace app\common\model;

use think\Db;
use think\Model as ThinkModel;

//项目表
class ProjectCategory extends ThinkModel
{
    // 设置当前模型对应的完整数据表名称
    protected $table = '__QT_PROJECT_CATEGORY__';
    protected $name = 'qt_project_category';
    protected $pk = 'id';
    protected $autoWriteTimestamp = true;



    /**
     *  门店所属项目分类
    **/
    public function getProjectCate($store_id = 0)
    {
        $where[] = ['store_id','eq',$store_id];
        return $this->where($where)->field('id,name')->order('sort asc')->select();
    }

}